package strategy.model;


import strategy.service.Compare;

public class Cat implements Compare<Cat> {
    private int weight;
    private int height;


    @Override
    public int compare(Cat cat) {
        if (this.weight>cat.getWeight()){
            return 1;
        }else if (this.weight<cat.getWeight()){
            return -1;
        }else {
            return 0;
        }

    }

    public Cat() {
    }

    public Cat(int weight, int height) {
        this.weight = weight;
        this.height = height;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }
}
